package com.example.demo.jobs;

import com.example.demo.services.system.task.Task;

public class TestJob extends Task {
    public TestJob(String number) {
        super(number);
    }

    @Override
    public void run() {
        try {
            System.out.println("start sleep:" + Thread.currentThread().getName());
            Thread.sleep(5000);
            System.out.println("end sleep：" + Thread.currentThread().getName());
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
